package myself.draw.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import myself.draw.dao.DrawDao;
import myself.draw.service.DrawService;
import myself.entity.ExamQuestionEntity;

@Service
public class DrawServiceImpl implements DrawService{

	@Resource
	private DrawDao drawDao;
	
	public List<ExamQuestionEntity> qryAllQuestins(String teacherCode,int page,int everyPageCount,String topic) {
		
		
		return drawDao.qryAllQuestins(teacherCode,page,everyPageCount,topic);
	}

	
	public int qryCount(String teacherCode,String topic) {
		// TODO Auto-generated method stub
		return drawDao.qryCount(teacherCode,topic);
	}


	
	public int delById(Integer id) {
		// TODO Auto-generated method stub
		return drawDao.delById(id);
	}

}
